-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
688 changed files
with
178,805 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: pod-identity-webhook | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- serviceaccounts | ||
verbs: | ||
- get | ||
- watch | ||
- list |
12 changes: 12 additions & 0 deletions
12
bindata/v4.1.0/aws-pod-identity-webhook/clusterrolebinding.yaml
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,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: pod-identity-webhook | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: pod-identity-webhook | ||
subjects: | ||
- kind: ServiceAccount | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator |
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,51 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: pod-identity-webhook | ||
template: | ||
metadata: | ||
labels: | ||
app: pod-identity-webhook | ||
spec: | ||
containers: | ||
- name: pod-identity-webhook | ||
image: ${IMAGE} | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /usr/bin/aws-pod-identity-webhook | ||
- --in-cluster | ||
- --namespace=openshift-cloud-credential-operator | ||
- --port=6443 | ||
- --service-name=pod-identity-webhook | ||
- --tls-secret=pod-identity-webhook | ||
- --annotation-prefix=eks.amazonaws.com # TODO: use openshift.io based prefix | ||
- --token-audience=sts.amazonaws.com | ||
- --logtostderr | ||
volumeMounts: | ||
- name: webhook-certs | ||
mountPath: /var/run/app/certs | ||
readOnly: false | ||
nodeSelector: | ||
node-role.kubernetes.io/master: "" | ||
serviceAccountName: pod-identity-webhook | ||
tolerations: | ||
- effect: NoSchedule | ||
key: node-role.kubernetes.io/master | ||
operator: Exists | ||
- effect: NoExecute | ||
key: node.kubernetes.io/unreachable | ||
operator: Exists | ||
tolerationSeconds: 120 | ||
- effect: NoExecute | ||
key: node.kubernetes.io/not-ready | ||
operator: Exists | ||
tolerationSeconds: 120 | ||
volumes: | ||
- name: webhook-certs | ||
emptyDir: {} |
19 changes: 19 additions & 0 deletions
19
bindata/v4.1.0/aws-pod-identity-webhook/mutatingwebhook.yaml
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,19 @@ | ||
apiVersion: admissionregistration.k8s.io/v1beta1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: pod-identity-webhook | ||
annotations: | ||
service.beta.openshift.io/inject-cabundle: "true" | ||
webhooks: | ||
- name: pod-identity-webhook.amazonaws.com | ||
failurePolicy: Ignore | ||
clientConfig: | ||
service: | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator | ||
path: "/mutate" | ||
rules: | ||
- operations: [ "CREATE" ] | ||
apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["pods"] |
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,22 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- create | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- get | ||
- update | ||
- patch | ||
resourceNames: | ||
- "pod-identity-webhook" |
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,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: pod-identity-webhook | ||
subjects: | ||
- kind: ServiceAccount | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator |
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,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator |
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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: pod-identity-webhook | ||
namespace: openshift-cloud-credential-operator | ||
annotations: | ||
prometheus.io/port: "443" | ||
prometheus.io/scheme: "https" | ||
prometheus.io/scrape: "true" | ||
service.beta.openshift.io/serving-cert-secret-name: pod-identity-webhook | ||
spec: | ||
ports: | ||
- port: 443 | ||
targetPort: 6443 | ||
selector: | ||
app: pod-identity-webhook |
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.