-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: tssala23 <[email protected]>
- Loading branch information
Showing
25 changed files
with
293 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
cluster-scope/overlays/albany/certificates/default-api-certificate.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,14 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: default-api-certificate | ||
namespace: openshift-config | ||
spec: | ||
issuerRef: | ||
name: letsencrypt-production-dns01 | ||
kind: Issuer | ||
secretName: default-api-certificate | ||
duration: 2160h0m0s | ||
renewBefore: 360h0m0s | ||
dnsNames: | ||
- "api.albany.nerc.mghpcc.org" |
14 changes: 14 additions & 0 deletions
14
cluster-scope/overlays/albany/certificates/default-ingress-certificate.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,14 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: default-ingress-certificate | ||
namespace: openshift-ingress | ||
spec: | ||
issuerRef: | ||
name: letsencrypt-production-dns01 | ||
kind: Issuer | ||
secretName: default-ingress-certificate | ||
duration: 2160h0m0s | ||
renewBefore: 360h0m0s | ||
dnsNames: | ||
- "*.apps.albany.nerc.mghpcc.org" |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/certificates/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- default-api-certificate.yaml | ||
- default-ingress-certificate.yaml |
20 changes: 20 additions & 0 deletions
20
cluster-scope/overlays/albany/externalsecrets/github-group-sync.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,20 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: github-group-sync | ||
namespace: group-sync-operator | ||
spec: | ||
secretStoreRef: | ||
name: nerc-secret-store | ||
kind: SecretStore | ||
target: | ||
name: github-group-sync | ||
data: | ||
- secretKey: appId | ||
remoteRef: | ||
key: nerc/albany/group-sync-operator/github-group-sync-token | ||
property: appId | ||
- secretKey: privateKey | ||
remoteRef: | ||
key: nerc/albany/group-sync-operator/github-group-sync-token | ||
property: privateKey |
4 changes: 4 additions & 0 deletions
4
cluster-scope/overlays/albany/externalsecrets/kustomization.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,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- github-group-sync.yaml |
16 changes: 16 additions & 0 deletions
16
...scope/overlays/albany/feature/odf/externalsecrets/rook-ceph-external-cluster-details.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,16 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: rook-ceph-external-cluster-details | ||
namespace: openshift-storage | ||
spec: | ||
secretStoreRef: | ||
name: nerc-secret-store | ||
kind: SecretStore | ||
target: | ||
name: rook-ceph-external-cluster-details | ||
data: | ||
- secretKey: external_cluster_details | ||
remoteRef: | ||
key: nerc/albany/openshift-storage/rook-ceph-external-cluster-details | ||
property: external_cluster_details |
15 changes: 15 additions & 0 deletions
15
cluster-scope/overlays/albany/feature/odf/kustomization.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,15 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: openshift-storage | ||
|
||
components: | ||
- ../../../../components/nerc-secret-store | ||
|
||
resources: | ||
- ../../../../bundles/odf-external | ||
- externalsecrets/rook-ceph-external-cluster-details.yaml | ||
- redhatcop.redhat.io/odf-node-patcher.yaml | ||
|
||
patches: | ||
- path: storageclasses/ocs-external-storagecluster-ceph-rbd_patch.yaml | ||
- path: subscriptions/subscription_patch.yaml |
21 changes: 21 additions & 0 deletions
21
cluster-scope/overlays/albany/feature/odf/redhatcop.redhat.io/odf-node-patcher.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,21 @@ | ||
apiVersion: redhatcop.redhat.io/v1alpha1 | ||
kind: Patch | ||
metadata: | ||
name: odf-node-label-workers | ||
namespace: openshift-storage | ||
spec: | ||
serviceAccountRef: | ||
name: patcher | ||
patches: | ||
odf-node-label-workers: | ||
targetObjectRef: | ||
apiVersion: v1 | ||
kind: Node | ||
labelSelector: | ||
matchLabels: | ||
node-role.kubernetes.io/worker: "" | ||
patchType: application/strategic-merge-patch+json | ||
patchTemplate: | | ||
metadata: | ||
labels: | ||
"cluster.ocs.openshift.io/openshift-storage": "" |
17 changes: 17 additions & 0 deletions
17
...verlays/albany/feature/odf/storageclasses/ocs-external-storagecluster-ceph-rbd_patch.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,17 @@ | ||
allowVolumeExpansion: true | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: ocs-external-storagecluster-ceph-rbd | ||
parameters: | ||
clusterID: openshift-storage | ||
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner | ||
csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage | ||
csi.storage.k8s.io/fstype: ext4 | ||
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node | ||
csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage | ||
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner | ||
csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage | ||
imageFeatures: layering | ||
imageFormat: "2" | ||
pool: moc-rbd-rhoai-beta-test |
6 changes: 6 additions & 0 deletions
6
cluster-scope/overlays/albany/feature/odf/subscriptions/subscription_patch.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,6 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: odf-operator | ||
spec: | ||
channel: stable-4.16 |
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: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- openshift-config | ||
- openshift-ingress |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/issuers/openshift-config/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: openshift-config | ||
components: | ||
- ../../../../components/nerc-certificate-issuer |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/issuers/openshift-ingress/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: openshift-ingress | ||
components: | ||
- ../../../../components/nerc-certificate-issuer |
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,69 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
commonLabels: | ||
nerc.mghpcc.org/kustomized: "true" | ||
|
||
resources: | ||
- ../common | ||
- ../../bundles/node-feature-discovery | ||
- ../../bundles/patch-operator | ||
- ../../bundles/clusterissuer-http01 | ||
- ../../base/rbac.authorization.k8s.io/clusterroles/allow-edit-rbac | ||
- ../../base/core/namespaces/openshift-gitops | ||
- externalsecrets | ||
- issuers | ||
- feature/odf | ||
- machineconfigs | ||
- certificates | ||
- secretstores | ||
|
||
components: | ||
- ../../components/nerc-oauth-github | ||
|
||
# this must come last in order to apply | ||
# to all resources. | ||
- ../../components/argocd-skip-dryrun | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
patches: | ||
|
||
- patch: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: OAuth | ||
metadata: | ||
name: cluster | ||
spec: | ||
identityProviders: | ||
- name: github | ||
github: | ||
clientID: Ov23liezggam3Edgcsfs | ||
- target: | ||
kind: ExternalSecret | ||
name: github-client-secret | ||
patch: | | ||
- op: replace | ||
path: /spec/data/0/remoteRef/key | ||
value: nerc/albany/openshift-config/github-client-secret | ||
- target: | ||
kind: SecretStore | ||
patch: | | ||
- op: replace | ||
path: /spec/provider/vault/auth/kubernetes/mountPath | ||
value: kubernetes/albany | ||
- target: | ||
kind: ExternalSecret | ||
name: aws-route53-credentials | ||
patch: | | ||
- op: replace | ||
path: /spec/dataFrom/0/extract/key | ||
value: nerc/albany/aws-route53-credentials | ||
- target: | ||
kind: APIServer | ||
name: cluster | ||
patch: | | ||
- op: replace | ||
path: /spec/servingCerts/namedCertificates/0/names/0 | ||
value: api.albany.nerc.mghpcc.org |
10 changes: 10 additions & 0 deletions
10
cluster-scope/overlays/albany/machineconfigs/configure-sysctl-ip-forward/Makefile
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,10 @@ | ||
MACHINECONFIGS = \ | ||
machineconfig.yaml | ||
|
||
%.yaml: src/%.bu $(wildcard src/*.nmconnection) | ||
butane -o $@ -d src $< | ||
|
||
all: $(MACHINECONFIGS) | ||
|
||
clean: | ||
rm -f $(MACHINECONFIGS) |
4 changes: 4 additions & 0 deletions
4
cluster-scope/overlays/albany/machineconfigs/configure-sysctl-ip-forward/kustomization.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,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- machineconfig.yaml |
18 changes: 18 additions & 0 deletions
18
cluster-scope/overlays/albany/machineconfigs/configure-sysctl-ip-forward/machineconfig.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,18 @@ | ||
# Generated by Butane; do not edit | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
labels: | ||
machineconfiguration.openshift.io/role: worker | ||
name: configure-sysctl-ip-forward | ||
spec: | ||
config: | ||
ignition: | ||
version: 3.4.0 | ||
storage: | ||
files: | ||
- contents: | ||
compression: "" | ||
source: data:,%23%20This%20is%20required%20to%20interact%20with%20NESE%20storage%0Anet.ipv4.ip_forward%3D1%0A | ||
mode: 420 | ||
path: /etc/sysctl.d/ip_forward.conf |
2 changes: 2 additions & 0 deletions
2
cluster-scope/overlays/albany/machineconfigs/configure-sysctl-ip-forward/src/ip_forward.conf
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,2 @@ | ||
# This is required to interact with NESE storage | ||
net.ipv4.ip_forward=1 |
12 changes: 12 additions & 0 deletions
12
...ter-scope/overlays/albany/machineconfigs/configure-sysctl-ip-forward/src/machineconfig.bu
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 @@ | ||
variant: openshift | ||
version: 4.15.0 | ||
metadata: | ||
name: configure-sysctl-ip-forward | ||
labels: | ||
machineconfiguration.openshift.io/role: worker | ||
storage: | ||
files: | ||
- path: /etc/sysctl.d/ip_forward.conf | ||
mode: 0644 | ||
contents: | ||
local: ip_forward.conf |
4 changes: 4 additions & 0 deletions
4
cluster-scope/overlays/albany/machineconfigs/kustomization.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,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- configure-sysctl-ip-forward/ |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/secretstores/group-sync-operator/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: group-sync-operator | ||
components: | ||
- ../../../../components/nerc-secret-store |
7 changes: 7 additions & 0 deletions
7
cluster-scope/overlays/albany/secretstores/kustomization.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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- openshift-config | ||
- openshift-ingress | ||
- openshift-logging | ||
- group-sync-operator |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/secretstores/openshift-config/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: openshift-config | ||
components: | ||
- ../../../../components/nerc-secret-store |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/secretstores/openshift-ingress/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: openshift-ingress | ||
components: | ||
- ../../../../components/nerc-secret-store |
5 changes: 5 additions & 0 deletions
5
cluster-scope/overlays/albany/secretstores/openshift-logging/kustomization.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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: openshift-logging | ||
components: | ||
- ../../../../components/nerc-secret-store |