-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manifests: new configmap etcd-serving-ca.kube-system
Manifest to create this resources belongs in installer. The renderer in cluster-kube-apiserver-operator will need to be also changed to stop creating the same manifest file.
- Loading branch information
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
pkg/asset/manifests/content/bootkube/kube-system-configmap-etcd-serving-ca.go
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,23 @@ | ||
package bootkube | ||
|
||
import "text/template" | ||
|
||
var ( | ||
// KubeSystemConfigmapEtcdServingCA is the constant to represent contents of kube-system-configmap-etcd-serving-ca.yaml file | ||
KubeSystemConfigmapEtcdServingCA = template.Must(template.New("kube-system-configmap-etcd-serving-ca.yaml").Parse(` | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: etcd-serving-ca | ||
namespace: kube-system | ||
labels: | ||
tier: "control-plane" | ||
k8s-app: "kube-apiserver" | ||
openshift.io/control-plane: "true" | ||
openshift.io/component: "api" | ||
data: | ||
ca-bundle.crt: | | ||
{{.EtcdCaCert}} | ||
`)) | ||
) |
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