-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from zylxjtu/dev
Create random hostname for GMSA
- Loading branch information
Showing
11 changed files
with
348 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
admission-webhook/integration_tests/templates/simple-with-gmsa-hostname.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## a simple deployment with a pod-level GMSA cred spec | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: {{ .TestName }} | ||
name: {{ .TestName }} | ||
namespace: {{ .Namespace }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ .TestName }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .TestName }} | ||
spec: | ||
hostname: {{ .TestName }} | ||
serviceAccountName: {{ .ServiceAccountName }} | ||
securityContext: | ||
windowsOptions: | ||
gmsaCredentialSpecName: {{ index .CredSpecNames 0 }} | ||
containers: | ||
- image: registry.k8s.io/pause | ||
name: nginx | ||
{{- range $line := .ExtraSpecLines }} | ||
{{ $line }} | ||
{{- end }} |
26 changes: 26 additions & 0 deletions
26
admission-webhook/integration_tests/templates/simple-without-gmsa.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## a simple deployment with a pod-level GMSA cred spec | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: {{ .TestName }} | ||
name: {{ .TestName }} | ||
namespace: {{ .Namespace }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ .TestName }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .TestName }} | ||
spec: | ||
serviceAccountName: {{ .ServiceAccountName }} | ||
containers: | ||
- image: registry.k8s.io/pause | ||
name: nginx | ||
{{- range $line := .ExtraSpecLines }} | ||
{{ $line }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.