Skip to content

Commit

Permalink
assets: Remove pre-kustomize helper annotations
Browse files Browse the repository at this point in the history
These provide no value once we have run kustomize and could be
confusing. Remove them.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Oct 30, 2024
1 parent 6390211 commit 8e88165
Show file tree
Hide file tree
Showing 30 changed files with 55 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: ebs.csi.aws.com
namespace: openshift-cluster-csi-drivers
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: aws-ebs-csi-driver-operator-clusterrole
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: aws-ebs-csi-driver-operator-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ patches:
name: PLACEHOLDER
target:
annotationSelector: "storage.openshift.io/remove-from=guest"
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=mgmt"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
storage.openshift.io/remove-from: guest
name: aws-ebs-csi-driver-operator
namespace: ${CONTROLPLANE_NAMESPACE}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ patches:
kind: Kustomization
metadata:
name: PLACEHOLDER
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=guest"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: ebs.csi.aws.com
namespace: openshift-cluster-csi-drivers
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: aws-ebs-csi-driver-operator-clusterrole
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: aws-ebs-csi-driver-operator-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ patches:
- path: monitoring_role.patch.yaml
target:
kind: Role
version: v1
version: v1
- path: deployment.patch.yaml
target:
kind: Deployment
version: v1
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=mgmt"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: disk.csi.azure.com
namespace: openshift-cluster-csi-drivers
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-disk-csi-driver-operator-clusterrole
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-disk-csi-driver-operator-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ patches:
name: PLACEHOLDER
target:
annotationSelector: "storage.openshift.io/remove-from=guest"
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=mgmt"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Deployment
metadata:
annotations:
config.openshift.io/inject-proxy: azure-disk-csi-driver-operator
storage.openshift.io/remove-from: guest
name: azure-disk-csi-driver-operator
namespace: ${CONTROLPLANE_NAMESPACE}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ patches:
kind: Kustomization
metadata:
name: PLACEHOLDER
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=guest"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: disk.csi.azure.com
namespace: openshift-cluster-csi-drivers
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-disk-csi-driver-operator-clusterrole
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-disk-csi-driver-operator-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ patches:
target:
kind: Deployment
version: v1
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=mgmt"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: file.csi.azure.com
namespace: openshift-cluster-csi-drivers
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-file-csi-driver-operator-clusterrole
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-file-csi-driver-operator-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ patches:
name: PLACEHOLDER
target:
annotationSelector: "storage.openshift.io/remove-from=guest"
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=mgmt"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Deployment
metadata:
annotations:
config.openshift.io/inject-proxy: azure-file-csi-driver-operator
storage.openshift.io/remove-from: guest
name: azure-file-csi-driver-operator
namespace: ${CONTROLPLANE_NAMESPACE}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ patches:
kind: Kustomization
metadata:
name: PLACEHOLDER
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=guest"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: file.csi.azure.com
namespace: openshift-cluster-csi-drivers
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-file-csi-driver-operator-clusterrole
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: azure-file-csi-driver-operator-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ patches:
target:
kind: Deployment
version: v1
# remove these annotations as they're just noise post-kustomization
- target:
annotationSelector: "storage.openshift.io/remove-from=mgmt"
patch: |
- op: "remove"
path: "/metadata/annotations/storage.openshift.io~1remove-from"

0 comments on commit 8e88165

Please sign in to comment.