3scale / apicast-operator

Apache License 2.0
9 stars 15 forks source link

3scale 2.12 patch #201

Closed MStokluska closed 1 year ago

austincunningham commented 1 year ago

Verification

make docker-build-only IMG=$DOCKER_REGISTRY/$DOCKER_ORG/apicast-operator:v0.0.1 make operator-image-push IMG=$DOCKER_REGISTRY/$DOCKER_ORG/apicast-operator:v0.0.1

make bundle-custom-build IMG=$DOCKER_REGISTRY/$DOCKER_ORG/apicast-operator:v0.0.1 BUNDLE_IMG=$DOCKER_REGISTRY/$DOCKER_ORG/apicast-operator-bundles:v0.0.1 make bundle-image-push BUNDLE_IMG=$DOCKER_REGISTRY/$DOCKER_ORG/apicast-operator-bundles:v0.0.1

make bundle-run BUNDLE_IMG=$DOCKER_REGISTRY/$DOCKER_ORG/apicast-operator-bundles:v0.0.1

create secret

kubectl create secret generic 3scaleportal --from-literal=AdminPortalURL=https://TOKEN>@<TENANT_URL

create apicast

kubectl apply -f - <<EOF

apiVersion: apps.3scale.net/v1alpha1 kind: APIcast metadata: name: apicast-test spec: adminPortalCredentialsRef: name: 3scaleportal EOF

- [x]  confirm the install works
```bash
{"level":"info","ts":1690982750.2309015,"logger":"setup","msg":"Operator Version: 0.6.0"}
⚠{"level":"info","ts":1690982750.2309277,"logger":"setup","msg":"Go Version: go1.17.13"}
{"level":"info","ts":1690982750.2309315,"logger":"setup","msg":"Go OS/Arch: linux/amd64"}
I0802 13:25:51.281976       1 request.go:601] Waited for 1.03935372s due to client-side throttling, not priority and fairness, request: GET:https://172.30.0.1:443/apis/batch/v1?timeout=32s
{"level":"info","ts":1690982753.2867458,"logger":"controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":"0.0.0.0:8080"}
{"level":"info","ts":1690982753.2870805,"logger":"setup","msg":"starting manager"}
{"level":"info","ts":1690982753.287335,"msg":"Starting server","path":"/metrics","kind":"metrics","addr":"[::]:8080"}
I0802 13:25:53.287367       1 leaderelection.go:248] attempting to acquire leader lease openshift-marketplace/988b4062.3scale.net...
I0802 13:25:53.297465       1 leaderelection.go:258] successfully acquired lease openshift-marketplace/988b4062.3scale.net
{"level":"info","ts":1690982753.2976964,"msg":"Starting EventSource","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast","source":"kind source: *v1alpha1.APIcast"}
{"level":"info","ts":1690982753.2977316,"msg":"Starting EventSource","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast","source":"kind source: *v1.Deployment"}
{"level":"info","ts":1690982753.2977388,"msg":"Starting EventSource","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast","source":"kind source: *v1.Service"}
{"level":"info","ts":1690982753.2977452,"msg":"Starting EventSource","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast","source":"kind source: *v1.Ingress"}
{"level":"info","ts":1690982753.297751,"msg":"Starting EventSource","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast","source":"kind source: *v1.Secret"}
{"level":"info","ts":1690982753.297756,"msg":"Starting Controller","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast"}
{"level":"info","ts":1690982753.5997021,"msg":"Starting workers","controller":"apicast","controllerGroup":"apps.3scale.net","controllerKind":"APIcast","worker count":1}
{"level":"info","ts":1690986758.4030497,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.403088,"logger":"controllers.APIcast","msg":"APIcast operator version not set in annotations. Setting it...","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.41009,"logger":"controllers.APIcast","msg":"APIcast operator version in annotations set. Requeuing request...","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.4101622,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.4102087,"logger":"controllers.APIcast","msg":"Updating APIcast/apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.415776,"logger":"controllers.APIcast","msg":"APIcast resource missed some fields. Updated CR which triggered a new reconciliation event","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.4157891,"logger":"controllers.APIcast","msg":"Requeuing request...","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.415832,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.416022,"logger":"controllers.APIcast","msg":"Created object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.424946,"logger":"KubeAPIWarningLogger","msg":"would violate PodSecurity \"restricted:v1.24\": allowPrivilegeEscalation != false (container \"apicast-apicast-test\" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container \"apicast-apicast-test\" must set securityContext.capabilities.drop=[\"ALL\"]), runAsNonRoot != true (pod or container \"apicast-apicast-test\" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container \"apicast-apicast-test\" must set securityContext.seccompProfile.type to \"RuntimeDefault\" or \"Localhost\")"}
{"level":"info","ts":1690986758.425028,"logger":"controllers.APIcast","msg":"Created object Service/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.4346642,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.475403,"logger":"controllers.APIcast","msg":"Requeuing request...","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.475479,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.475668,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.508857,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.509035,"logger":"controllers.APIcast","msg":"APIcast status reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.509088,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5092225,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5143661,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5145001,"logger":"controllers.APIcast","msg":"APIcast status reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5170753,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.517228,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.522756,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5228693,"logger":"controllers.APIcast","msg":"APIcast status reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5316606,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.531804,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5374827,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.537596,"logger":"controllers.APIcast","msg":"APIcast status reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5844748,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5846233,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5925236,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986758.5926442,"logger":"controllers.APIcast","msg":"APIcast status reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986788.9141436,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986788.914374,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-apicast-test","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986788.920498,"logger":"controllers.APIcast","msg":"APIcast logic reconciled","apicast":"3scale-test/apicast-test"}
{"level":"info","ts":1690986788.9206548,"logger":"controllers.APIcast","msg":"APIcast status reconciled","apicast":"3scale-test/apicast-test"} ```

spec and status of apicast CR
```yaml
spec:
  adminPortalCredentialsRef:
    name: 3scaleportal
  replicas: 1
status:
  image: 'quay.io/3scale/apicast:latest'