Adds parameter to flux install to make ns configurable
General MR
Summary
Adds parameter to flux install to make namespace configurable
Relevant logs/screenshots
Running the script with the new CLI parameter set to custom-ns
:
bigbang (2501-make-flux-namespace-configurable) sh scripts/install_flux.sh --flux-namespace custom-ns
REGISTRY_URL: registry1.dso.mil
REGISTRY_USERNAME: Ryan_Daily
Creating custom-ns namespace so that the docker-registry secret can be added first.
namespace/custom-ns created
Creating secret private-registry in namespace custom-ns
secret/private-registry created
Installing flux from kustomization
namespace/custom-ns configured
resourcequota/critical-pods-flux-system created
customresourcedefinition.apiextensions.k8s.io/alerts.notification.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/buckets.source.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/gitrepositories.source.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/helmcharts.source.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/helmreleases.helm.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/helmrepositories.source.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/kustomizations.kustomize.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/ocirepositories.source.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/providers.notification.toolkit.fluxcd.io unchanged
customresourcedefinition.apiextensions.k8s.io/receivers.notification.toolkit.fluxcd.io unchanged
serviceaccount/helm-controller created
serviceaccount/kustomize-controller created
serviceaccount/notification-controller created
serviceaccount/source-controller created
clusterrole.rbac.authorization.k8s.io/crd-controller-flux-system unchanged
clusterrole.rbac.authorization.k8s.io/flux-edit-flux-system unchanged
clusterrole.rbac.authorization.k8s.io/flux-view-flux-system unchanged
clusterrolebinding.rbac.authorization.k8s.io/cluster-reconciler-flux-system configured
clusterrolebinding.rbac.authorization.k8s.io/crd-controller-flux-system configured
service/notification-controller created
service/source-controller created
service/webhook-receiver created
Warning: would violate PodSecurity "restricted:latest": seccompProfile (pod or container "manager" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
deployment.apps/helm-controller created
deployment.apps/kustomize-controller created
deployment.apps/notification-controller created
deployment.apps/source-controller created
networkpolicy.networking.k8s.io/allow-egress created
networkpolicy.networking.k8s.io/allow-scraping created
networkpolicy.networking.k8s.io/allow-webhooks created
deployment.apps/helm-controller condition met
deployment.apps/source-controller condition met
deployment.apps/kustomize-controller condition met
deployment.apps/notification-controller condition met
Resources create in custom-ns after the script has completed:
bigbang (2501-make-flux-namespace-configurable) kubectl get all -n custom-ns
NAME READY STATUS RESTARTS AGE
pod/helm-controller-54dc66c7fb-47d9h 1/1 Running 0 16s
pod/kustomize-controller-bc645cd76-n2pgd 1/1 Running 0 16s
pod/notification-controller-857d576f78-wmxmw 1/1 Running 0 16s
pod/source-controller-68845949d5-r2gfn 1/1 Running 0 16s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/notification-controller ClusterIP 10.43.14.3 <none> 80/TCP 16s
service/source-controller ClusterIP 10.43.146.22 <none> 80/TCP 16s
service/webhook-receiver ClusterIP 10.43.121.225 <none> 80/TCP 16s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/helm-controller 1/1 1 1 16s
deployment.apps/kustomize-controller 1/1 1 1 16s
deployment.apps/notification-controller 1/1 1 1 16s
deployment.apps/source-controller 1/1 1 1 16s
NAME DESIRED CURRENT READY AGE
replicaset.apps/helm-controller-54dc66c7fb 1 1 1 16s
replicaset.apps/kustomize-controller-bc645cd76 1 1 1 16s
replicaset.apps/notification-controller-857d576f78 1 1 1 16s
replicaset.apps/source-controller-68845949d5 1 1 1 16s
Linked Issue
Upgrade Notices
N/A
Closes #2501 (closed)