Skip to content

Commit

Permalink
Update tests after common rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaldessari committed May 30, 2024
1 parent 86de14c commit 28d9b49
Show file tree
Hide file tree
Showing 23 changed files with 813 additions and 324 deletions.
4 changes: 3 additions & 1 deletion tests/common-acm-industrial-edge-hub.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ spec:
type: Opaque
metadata:
name: hub-ca
namespace: imperative
namespace: golang-external-secrets
data:
hub-kube-root-ca.crt: '{{hub fromConfigMap "" "kube-root-ca.crt" "ca.crt" | base64enc hub}}'
hub-openshift-service-ca.crt: '{{hub fromConfigMap "" "openshift-service-ca.crt" "service-ca.crt" | base64enc hub}}'
Expand Down Expand Up @@ -214,6 +214,8 @@ spec:
path: common/clustergroup
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-factory.yaml"
Expand Down
4 changes: 3 additions & 1 deletion tests/common-acm-medical-diagnosis-hub.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ spec:
type: Opaque
metadata:
name: hub-ca
namespace: imperative
namespace: golang-external-secrets
data:
hub-kube-root-ca.crt: '{{hub fromConfigMap "" "kube-root-ca.crt" "ca.crt" | base64enc hub}}'
hub-openshift-service-ca.crt: '{{hub fromConfigMap "" "openshift-service-ca.crt" "service-ca.crt" | base64enc hub}}'
Expand Down Expand Up @@ -205,6 +205,8 @@ spec:
path: common/clustergroup
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-region-one.yaml"
Expand Down
6 changes: 5 additions & 1 deletion tests/common-acm-normal.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ spec:
type: Opaque
metadata:
name: hub-ca
namespace: imperative
namespace: golang-external-secrets
data:
hub-kube-root-ca.crt: '{{hub fromConfigMap "" "kube-root-ca.crt" "ca.crt" | base64enc hub}}'
hub-openshift-service-ca.crt: '{{hub fromConfigMap "" "openshift-service-ca.crt" "service-ca.crt" | base64enc hub}}'
Expand Down Expand Up @@ -608,6 +608,8 @@ spec:
path: common/clustergroup
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-acm-edge.yaml"
Expand Down Expand Up @@ -704,6 +706,8 @@ spec:
path: common/clustergroup
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-acm-provision-edge.yaml"
Expand Down
51 changes: 49 additions & 2 deletions tests/common-clustergroup-industrial-edge-factory.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ metadata:
name: imperative-sa
namespace: imperative
---
# Source: clustergroup/templates/imperative/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: imperative-admin-sa
namespace: imperative
---
# Source: clustergroup/templates/imperative/configmap.yaml
apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -116,6 +123,9 @@ data:
initContainers: []
imperative:
activeDeadlineSeconds: 3600
adminClusterRoleName: imperative-admin-cluster-role
adminServiceAccountCreate: true
adminServiceAccountName: imperative-admin-sa
clusterRoleName: imperative-cluster-role
clusterRoleYaml: ""
cronJobName: imperative-cronjob
Expand Down Expand Up @@ -279,11 +289,24 @@ rules:
- list
- watch
---
# Source: clustergroup/templates/imperative/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: imperative-admin-cluster-role
rules:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'
---
# Source: clustergroup/templates/imperative/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: imperative-cluster-admin-rolebinding
name: imperative-cluster-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -293,12 +316,30 @@ subjects:
name: imperative-sa
namespace: imperative
---
# Source: clustergroup/templates/imperative/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: imperative-admin-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: imperative-admin-cluster-role
subjects:
- kind: ServiceAccount
name: imperative-admin-sa
namespace: imperative
---
# Source: clustergroup/templates/plumbing/argocd-super-role.yaml
# WARNING: ONLY USE THIS FOR MANAGING CLUSTERS NOT FOR REGULAR USERS
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: openshift-gitops-cluster-admin-rolebinding
# We need to have this before anything else or the sync might get stuck forever
# due to permission issues
annotations:
argocd.argoproj.io/sync-wave: "-100"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -318,6 +359,10 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: mypattern-factory-cluster-admin-rolebinding
# We need to have this before anything else or the sync might get stuck forever
# due to permission issues
annotations:
argocd.argoproj.io/sync-wave: "-100"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down Expand Up @@ -355,7 +400,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: imperative-admin-rolebinding
name: imperative-rolebinding
namespace: imperative
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down Expand Up @@ -537,6 +582,8 @@ spec:
path: charts/datacenter/opendatahub
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-factory.yaml"
Expand Down
63 changes: 61 additions & 2 deletions tests/common-clustergroup-industrial-edge-hub.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ metadata:
name: imperative-sa
namespace: imperative
---
# Source: clustergroup/templates/imperative/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: imperative-admin-sa
namespace: imperative
---
# Source: clustergroup/templates/imperative/configmap.yaml
apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -237,6 +244,9 @@ data:
initContainers: []
imperative:
activeDeadlineSeconds: 3600
adminClusterRoleName: imperative-admin-cluster-role
adminServiceAccountCreate: true
adminServiceAccountName: imperative-admin-sa
clusterRoleName: imperative-cluster-role
clusterRoleYaml: ""
cronJobName: imperative-cronjob
Expand Down Expand Up @@ -440,11 +450,24 @@ rules:
- list
- watch
---
# Source: clustergroup/templates/imperative/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: imperative-admin-cluster-role
rules:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'
---
# Source: clustergroup/templates/imperative/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: imperative-cluster-admin-rolebinding
name: imperative-cluster-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -454,12 +477,30 @@ subjects:
name: imperative-sa
namespace: imperative
---
# Source: clustergroup/templates/imperative/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: imperative-admin-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: imperative-admin-cluster-role
subjects:
- kind: ServiceAccount
name: imperative-admin-sa
namespace: imperative
---
# Source: clustergroup/templates/plumbing/argocd-super-role.yaml
# WARNING: ONLY USE THIS FOR MANAGING CLUSTERS NOT FOR REGULAR USERS
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: openshift-gitops-cluster-admin-rolebinding
# We need to have this before anything else or the sync might get stuck forever
# due to permission issues
annotations:
argocd.argoproj.io/sync-wave: "-100"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -479,6 +520,10 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: mypattern-datacenter-cluster-admin-rolebinding
# We need to have this before anything else or the sync might get stuck forever
# due to permission issues
annotations:
argocd.argoproj.io/sync-wave: "-100"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down Expand Up @@ -516,7 +561,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: imperative-admin-rolebinding
name: imperative-rolebinding
namespace: imperative
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down Expand Up @@ -835,6 +880,8 @@ spec:
path: common/acm
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down Expand Up @@ -900,6 +947,8 @@ spec:
path: charts/datacenter/opendatahub
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down Expand Up @@ -956,6 +1005,8 @@ spec:
path: charts/datacenter/pipelines
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down Expand Up @@ -1012,6 +1063,8 @@ spec:
path: charts/datacenter/manuela-data-lake
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down Expand Up @@ -1098,6 +1151,8 @@ spec:
path: charts/datacenter/external-secrets
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down Expand Up @@ -1154,6 +1209,8 @@ spec:
path: common/golang-external-secrets
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down Expand Up @@ -1237,6 +1294,8 @@ spec:
chart: vault
helm:
ignoreMissingValueFiles: true
values: |
extraParametersNested:
valueFiles:
- "/values-global.yaml"
- "/values-datacenter.yaml"
Expand Down
Loading

0 comments on commit 28d9b49

Please sign in to comment.