Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(operators): move keycloak operator to own namespace #56

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

d3adb5
Copy link
Owner

@d3adb5 d3adb5 commented Jul 14, 2024

Move the Keycloak operator back to its own namespace, but this time separated from the Keycloak deployments. This is being done because the Keycloak Operator does not support the MultiNamespace or AllNamespaces install types for its OperatorGroup.

Move the Keycloak operator back to its own namespace, but this time
separated from the Keycloak deployments. This is being done because the
Keycloak Operator does not support the MultiNamespace or AllNamespaces
install types for its OperatorGroup.
@d3adb5 d3adb5 added bug Something isn't working enhancement New feature or request labels Jul 14, 2024
@d3adb5 d3adb5 self-assigned this Jul 14, 2024
Copy link

===== argoproj.io/AppProject argo-cd/operators ======
52a53,54
>   - namespace: operator-lifecycle-manager
>     server: https://kubernetes.default.svc
55c57
<   - namespace: operator-lifecycle-manager
---
>   - namespace: keycloak-operator

===== argoproj.io/Application argo-cd/operators ======
1,272d0
< apiVersion: argoproj.io/v1alpha1
< kind: Application
< metadata:
<   annotations:
<     kubectl.kubernetes.io/last-applied-configuration: |
<       {"apiVersion":"argoproj.io/v1alpha1","kind":"Application","metadata":{"annotations":{},"finalizers":["resources-finalizer.argocd.argoproj.io"],"labels":{"argocd.argoproj.io/instance":"app-of-apps"},"name":"operators","namespace":"argo-cd"},"spec":{"destination":{"namespace":"operators","server":"https://kubernetes.default.svc"},"project":"operators","source":{"path":"operators","repoURL":"https://github.com/d3adb5/app-of-apps","targetRevision":"HEAD"},"syncPolicy":{"automated":{"prune":true,"selfHeal":true},"syncOptions":["CreateNamespace=true"]}}}
<   finalizers:
<   - resources-finalizer.argocd.argoproj.io
<   generation: 302
<   labels:
<     argocd.argoproj.io/instance: app-of-apps
<   managedFields:
<   - apiVersion: argoproj.io/v1alpha1
<     fieldsType: FieldsV1
<     fieldsV1:
<       f:metadata:
<         f:annotations:
<           .: {}
<           f:kubectl.kubernetes.io/last-applied-configuration: {}
<         f:finalizers:
<           .: {}
<           v:"resources-finalizer.argocd.argoproj.io": {}
<         f:labels:
<           .: {}
<           f:argocd.argoproj.io/instance: {}
<       f:spec:
<         .: {}
<         f:destination:
<           .: {}
<           f:namespace: {}
<           f:server: {}
<         f:project: {}
<         f:source:
<           .: {}
<           f:path: {}
<           f:repoURL: {}
<           f:targetRevision: {}
<         f:syncPolicy:
<           .: {}
<           f:automated:
<             .: {}
<             f:prune: {}
<             f:selfHeal: {}
<           f:syncOptions: {}
<     manager: argocd-controller
<     operation: Update
<     time: "2024-07-14T03:43:39Z"
<   - apiVersion: argoproj.io/v1alpha1
<     fieldsType: FieldsV1
<     fieldsV1:
<       f:status:
<         .: {}
<         f:controllerNamespace: {}
<         f:health:
<           .: {}
<           f:status: {}
<         f:history: {}
<         f:operationState:
<           .: {}
<           f:finishedAt: {}
<           f:message: {}
<           f:operation:
<             .: {}
<             f:initiatedBy:
<               .: {}
<               f:automated: {}
<             f:retry:
<               .: {}
<               f:limit: {}
<             f:sync:
<               .: {}
<               f:prune: {}
<               f:resources: {}
<               f:revision: {}
<               f:syncOptions: {}
<           f:phase: {}
<           f:startedAt: {}
<           f:syncResult:
<             .: {}
<             f:resources: {}
<             f:revision: {}
<             f:source:
<               .: {}
<               f:path: {}
<               f:repoURL: {}
<               f:targetRevision: {}
<         f:reconciledAt: {}
<         f:resources: {}
<         f:sourceType: {}
<         f:summary:
<           .: {}
<           f:images: {}
<         f:sync:
<           .: {}
<           f:comparedTo:
<             .: {}
<             f:destination:
<               .: {}
<               f:namespace: {}
<               f:server: {}
<             f:source:
<               .: {}
<               f:path: {}
<               f:repoURL: {}
<               f:targetRevision: {}
<           f:revision: {}
<           f:status: {}
<     manager: argocd-application-controller
<     operation: Update
<     time: "2024-07-14T16:46:05Z"
<   name: operators
<   namespace: argo-cd
<   resourceVersion: "57579161"
<   uid: c7c001a0-bf90-462a-969f-771ff49d3206
< spec:
<   destination:
<     namespace: operators
<     server: https://kubernetes.default.svc
<   project: operators
<   source:
<     path: operators
<     repoURL: https://github.com/d3adb5/app-of-apps
<     targetRevision: HEAD
<   syncPolicy:
<     automated:
<       prune: true
<       selfHeal: true
<     syncOptions:
<     - CreateNamespace=true
< status:
<   controllerNamespace: argo-cd
<   health:
<     status: Healthy
<   history:
<   - deployStartedAt: "2024-07-14T03:43:40Z"
<     deployedAt: "2024-07-14T03:43:41Z"
<     id: 0
<     initiatedBy:
<       automated: true
<     revision: c722d0a251f4f4998c648779830f7bf09bfe2ed6
<     source:
<       path: operators
<       repoURL: https://github.com/d3adb5/app-of-apps
<       targetRevision: HEAD
<   - deployStartedAt: "2024-07-14T03:46:32Z"
<     deployedAt: "2024-07-14T03:46:33Z"
<     id: 1
<     initiatedBy:
<       username: admin
<     revision: c722d0a251f4f4998c648779830f7bf09bfe2ed6
<     source:
<       path: operators
<       repoURL: https://github.com/d3adb5/app-of-apps
<       targetRevision: HEAD
<   - deployStartedAt: "2024-07-14T03:54:26Z"
<     deployedAt: "2024-07-14T03:54:27Z"
<     id: 2
<     initiatedBy:
<       username: admin
<     revision: bac1fb39946c64e7afd3f86dc81cacdec164002e
<     source:
<       path: operators
<       repoURL: https://github.com/d3adb5/app-of-apps
<       targetRevision: HEAD
<   - deployStartedAt: "2024-07-14T03:58:33Z"
<     deployedAt: "2024-07-14T03:58:35Z"
<     id: 3
<     initiatedBy:
<       automated: true
<     revision: d2c689fd38d0ea2abfcd213db79a24529a355de4
<     source:
<       path: operators
<       repoURL: https://github.com/d3adb5/app-of-apps
<       targetRevision: HEAD
<   - deployStartedAt: "2024-07-14T03:59:27Z"
<     deployedAt: "2024-07-14T03:59:29Z"
<     id: 4
<     initiatedBy:
<       automated: true
<     revision: bac1fb39946c64e7afd3f86dc81cacdec164002e
<     source:
<       path: operators
<       repoURL: https://github.com/d3adb5/app-of-apps
<       targetRevision: HEAD
<   operationState:
<     finishedAt: "2024-07-14T16:19:09Z"
<     message: successfully synced (all tasks run)
<     operation:
<       initiatedBy:
<         automated: true
<       retry:
<         limit: 5
<       sync:
<         prune: true
<         resources:
<         - group: operators.coreos.com
<           kind: Subscription
<           name: keycloak-operator
<         revision: bac1fb39946c64e7afd3f86dc81cacdec164002e
<         syncOptions:
<         - CreateNamespace=true
<     phase: Succeeded
<     startedAt: "2024-07-14T16:19:08Z"
<     syncResult:
<       resources:
<       - group: operators.coreos.com
<         hookPhase: Running
<         kind: Subscription
<         message: subscription.operators.coreos.com/keycloak-operator created
<         name: keycloak-operator
<         namespace: operators
<         status: Synced
<         syncPhase: Sync
<         version: v1alpha1
<       revision: bac1fb39946c64e7afd3f86dc81cacdec164002e
<       source:
<         path: operators
<         repoURL: https://github.com/d3adb5/app-of-apps
<         targetRevision: HEAD
<   reconciledAt: "2024-07-14T16:46:04Z"
<   resources:
<   - group: operator.external-secrets.io
<     kind: OperatorConfig
<     name: external-secrets-operator
<     namespace: operators
<     status: Synced
<     version: v1alpha1
<   - group: operators.coreos.com
<     health:
<       message: |
<         1: CatalogSourcesUnhealthy | False
<       status: Healthy
<     kind: Subscription
<     name: crunchy-postgresql
<     namespace: operators
<     status: Synced
<     version: v1alpha1
<   - group: operators.coreos.com
<     health:
<       message: |
<         1: CatalogSourcesUnhealthy | False
<       status: Healthy
<     kind: Subscription
<     name: external-secrets-operator
<     namespace: operators
<     status: Synced
<     version: v1alpha1
<   - group: operators.coreos.com
<     health:
<       message: |
<         1: CatalogSourcesUnhealthy | False
<       status: Healthy
<     kind: Subscription
<     name: keycloak-operator
<     namespace: operators
<     status: Synced
<     version: v1alpha1
<   sourceType: Directory
<   summary:
<     images:
<     - ghcr.io/external-secrets/external-secrets:v0.9.20
<   sync:
<     comparedTo:
<       destination:
<         namespace: operators
<         server: https://kubernetes.default.svc
<       source:
<         path: operators
<         repoURL: https://github.com/d3adb5/app-of-apps
<         targetRevision: HEAD
<     revision: bac1fb39946c64e7afd3f86dc81cacdec164002e
<     status: Synced

===== argoproj.io/Application argo-cd/keycloak-operator ======
0a1,24
> apiVersion: argoproj.io/v1alpha1
> kind: Application
> metadata:
>   finalizers:
>   - resources-finalizer.argocd.argoproj.io
>   labels:
>     argocd.argoproj.io/instance: app-of-apps
>   name: keycloak-operator
>   namespace: argo-cd
> spec:
>   destination:
>     namespace: keycloak-operator
>     server: https://kubernetes.default.svc
>   project: operators
>   source:
>     path: operators/keycloak
>     repoURL: https://github.com/d3adb5/app-of-apps
>     targetRevision: HEAD
>   syncPolicy:
>     automated:
>       prune: true
>       selfHeal: true
>     syncOptions:
>     - CreateNamespace=true

===== argoproj.io/Application argo-cd/global-operators ======
0a1,24
> apiVersion: argoproj.io/v1alpha1
> kind: Application
> metadata:
>   finalizers:
>   - resources-finalizer.argocd.argoproj.io
>   labels:
>     argocd.argoproj.io/instance: app-of-apps
>   name: global-operators
>   namespace: argo-cd
> spec:
>   destination:
>     namespace: operators
>     server: https://kubernetes.default.svc
>   project: operators
>   source:
>     path: operators/global
>     repoURL: https://github.com/d3adb5/app-of-apps
>     targetRevision: HEAD
>   syncPolicy:
>     automated:
>       prune: true
>       selfHeal: true
>     syncOptions:
>     - CreateNamespace=true

@d3adb5 d3adb5 merged commit b7c9858 into master Jul 14, 2024
1 check passed
@d3adb5 d3adb5 deleted the fix/move-keycloak-operator-to-own-namespace branch July 14, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant