Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions assets/components/service-ca/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ rules:
- list
- watch
- update
- apiGroups:
- config.openshift.io
resources:
- infrastructures
verbs:
- get
- list
- watch
75 changes: 37 additions & 38 deletions assets/components/service-ca/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ metadata:
app: service-ca
service-ca: "true"
spec:
replicas: 1
strategy:
type: Recreate
selector:
Expand All @@ -23,45 +22,45 @@ spec:
app: service-ca
service-ca: "true"
spec:
serviceAccount: service-ca
serviceAccountName: service-ca
containers:
- name: service-ca-controller
image: {{ .ReleaseImage.service_ca_operator }}
imagePullPolicy: IfNotPresent
command: ["service-ca-operator", "controller"]
ports:
- containerPort: 8443
securityContext:
runAsNonRoot: true
resources:
requests:
memory: 120Mi
cpu: 10m
volumeMounts:
- mountPath: /var/run/secrets/signing-key
name: signing-key
- mountPath: /var/run/configmaps/signing-cabundle
name: signing-cabundle
- name: service-ca-controller
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whitespace change is the result from yq's reformatting.

image: {{ .ReleaseImage.service_ca_operator }}
imagePullPolicy: IfNotPresent
command: ["service-ca-operator", "controller"]
ports:
- containerPort: 8443
securityContext:
runAsNonRoot: true
resources:
requests:
memory: 120Mi
cpu: 10m
volumeMounts:
- mountPath: /var/run/secrets/signing-key
name: signing-key
- mountPath: /var/run/configmaps/signing-cabundle
name: signing-cabundle
volumes:
- name: signing-key
secret:
secretName: {{.TLSSecret}}
- name: signing-cabundle
configMap:
name: {{.CAConfigMap}}
# nodeSelector:
# node-role.kubernetes.io/master: ""
- name: signing-key
secret:
secretName: {{.TLSSecret}}
- name: signing-cabundle
configMap:
name: {{.CAConfigMap}}
nodeSelector:
node-role.kubernetes.io/master: ""
Comment on lines +51 to +52
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unlikely that this was commented out in our code, you may want to figure out why this was here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We originally didn't have node roles set; this was fixed in #869 only recently; we probably missed removing the comment.

priorityClassName: "system-cluster-critical"
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: "NoSchedule"
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
- key: node-role.kubernetes.io/master
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again - these whitespaces don't appear in the orig

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whitespace change is the result from yq's reformatting.

operator: Exists
effect: "NoSchedule"
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
replicas: 1
1 change: 0 additions & 1 deletion assets/components/service-ca/ns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ metadata:
annotations:
openshift.io/node-selector: ""
workload.openshift.io/allowed: "management"

2 changes: 1 addition & 1 deletion assets/components/service-ca/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ rules:
verbs:
- get
- list
- watch
- watch
1 change: 0 additions & 1 deletion assets/components/service-ca/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
roleRef:
kind: Role
name: system:openshift:controller:service-ca
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
namespace: openshift-service-ca
Expand Down
98 changes: 52 additions & 46 deletions pkg/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.