diff --git a/Makefile b/Makefile index b540a44e..50a72839 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,7 @@ BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION) # Image URL to use all building/pushing image targets IMG ?= $(IMAGE_TAG_BASE):$(VERSION) +NAMESPACE ?= awx all: docker-build @@ -77,6 +78,7 @@ uninstall: kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} + cd config/default && $(KUSTOMIZE) edit set namespace ${NAMESPACE} $(KUSTOMIZE) build config/default | kubectl apply -f - undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index ab3a8b43..f5ebf777 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -1,6 +1,5 @@ ---- # Adds namespace to all resources. -namespace: awx-operator-system +namespace: awx # Value of this field is prepended to the # names of all resources, e.g. a deployment named # "wordpress" becomes "alices-wordpress". @@ -10,18 +9,16 @@ namePrefix: awx-operator- # Labels to add to all resources and selectors. # commonLabels: # someName: someValue -bases: - - ../crd - - ../rbac - - ../manager # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. # - ../prometheus -patchesStrategicMerge: # Protect the /metrics endpoint by putting it behind auth. # If you want your controller-manager to expose the /metrics # endpoint w/o any authn/z, please comment the following line. - - manager_auth_proxy_patch.yaml - -# Mount the controller config file for loading manager configurations -# through a ComponentConfig type -# - manager_config_patch.yaml +patchesStrategicMerge: +- manager_auth_proxy_patch.yaml +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../crd +- ../rbac +- ../manager diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 897ae638..8c7ae272 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -1,15 +1,14 @@ ---- resources: - - manager.yaml +- manager.yaml generatorOptions: disableNameSuffixHash: true configMapGenerator: - - files: - - controller_manager_config.yaml - name: manager-config +- files: + - controller_manager_config.yaml + name: manager-config apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization images: - - name: controller - newName: quay.io/shanemcd/awx-operator - newTag: 0.0.1 +- name: controller + newName: quay.io/ansible/awx-operator + newTag: 0.14.0 diff --git a/config/manifests/bases/awx-operator.clusterserviceversion.yaml b/config/manifests/bases/awx-operator.clusterserviceversion.yaml index f4514972..f291cb70 100644 --- a/config/manifests/bases/awx-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/awx-operator.clusterserviceversion.yaml @@ -1,4 +1,3 @@ ---- apiVersion: operators.coreos.com/v1beta1 kind: ClusterServiceVersion metadata: @@ -13,27 +12,27 @@ spec: description: An operator for the AWX Project displayName: AWX icon: - - base64data: "" - mediatype: "" + - base64data: "" + mediatype: "" install: spec: deployments: null strategy: "" installModes: - - supported: false - type: OwnNamespace - - supported: false - type: SingleNamespace - - supported: false - type: MultiNamespace - - supported: true - type: AllNamespaces + - supported: true + type: OwnNamespace + - supported: true + type: SingleNamespace + - supported: true + type: MultiNamespace + - supported: false + type: AllNamespaces keywords: - - automation - - ansible + - automation + - ansible links: - - name: Awx Operator - url: https://awx-operator.domain + - name: Awx Operator + url: https://awx-operator.domain maturity: alpha provider: name: Ansible