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
9 changes: 9 additions & 0 deletions assets/vsphere_problem_detector/06_configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
labels:
# This label ensures that the OpenShift Certificate Authority bundle
# is added to the ConfigMap.
config.openshift.io/inject-trusted-cabundle: "true"
name: trusted-ca-bundle
namespace: openshift-cluster-storage-operator
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
volumeMounts:
- mountPath: /var/run/secrets/serving-cert
name: vsphere-problem-detector-serving-cert
- name: trusted-ca-bundle
mountPath: /etc/pki/ca-trust/extracted/pem
readOnly: true
priorityClassName: system-cluster-critical
serviceAccountName: vsphere-problem-detector-operator
nodeSelector:
Expand All @@ -53,3 +56,9 @@ spec:
secret:
secretName: vsphere-problem-detector-serving-cert
optional: true
- name: trusted-ca-bundle
configMap:
name: trusted-ca-bundle
items:
- key: ca-bundle.crt
path: tls-ca-bundle.pem
1 change: 1 addition & 0 deletions pkg/dependencymagnet/dependencymagnet.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build tools
// +build tools

// go mod won't pull in code that isn't depended upon, but we have some code we don't depend on from code that must be included
Expand Down
56 changes: 47 additions & 9 deletions pkg/generated/bindata.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c *VSphereProblemDetectorDeploymentController) sync(ctx context.Context, s
}

replacer := strings.NewReplacer(pairs...)
required := csoutils.GetRequiredDeployment("vsphere_problem_detector/06_deployment.yaml", opSpec, replacer)
required := csoutils.GetRequiredDeployment("vsphere_problem_detector/07_deployment.yaml", opSpec, replacer)

requiredCopy, err := util.InjectObservedProxyInDeploymentContainers(required, opSpec)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (c *VSphereProblemDetectorStarter) createVSphereProblemDetectorManager(
"vsphere_problem_detector/03_rolebinding.yaml",
"vsphere_problem_detector/04_clusterrole.yaml",
"vsphere_problem_detector/05_clusterrolebinding.yaml",
"vsphere_problem_detector/06_configmap.yaml",
"vsphere_problem_detector/10_service.yaml",
}

Expand Down