Skip to content

Commit

Permalink
Fixed issue StormShift OCP5 Certificate is expired
Browse files Browse the repository at this point in the history
  • Loading branch information
rbo committed Dec 27, 2024
1 parent 835cf85 commit e3b1e92
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: config.openshift.io/v1
kind: Proxy
metadata:
annotations:
argocd.argoproj.io/sync-options: "ServerSideApply=true,Validate=false"
name: cluster
spec:
trustedCA:
name: redhat-current-it-root-cas
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- MachineConfig/
- Proxy/
1 change: 1 addition & 0 deletions configuration/overlays/stormshift-ocp5/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ resources:

- ../../../apps/astra-trident/overlays/stormshift-ocp5/
- cluster-scope/
- namespace/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- openshift-ingress/
- openshift-ingress-operator/
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
name: default
namespace: openshift-ingress-operator
annotations:
argocd.argoproj.io/sync-options: "ServerSideApply=true,Validate=false"
spec:
defaultCertificate:
name: ocp-coe-cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- IngressController/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: ocp-coe-cert
spec:
data:
- remoteRef:
key: coe-lab/certificate/api.ocp5.stormshift.coe.muc.redhat.com
property: cert_and_intermediate_pem
secretKey: tls.crt
- remoteRef:
key: coe-lab/certificate/api.ocp5.stormshift.coe.muc.redhat.com
property: key
secretKey: tls.key
refreshInterval: 12h
secretStoreRef:
kind: ClusterSecretStore
name: redhat-vault
target:
creationPolicy: Owner
deletionPolicy: Retain
name: ocp-coe-cert
template:
type: kubernetes.io/tls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: openshift-ingress

resources:
- ExternalSecret/ocp-coe-cert.yaml

0 comments on commit e3b1e92

Please sign in to comment.