diff --git a/bundle/manifests/authorino-operator.clusterserviceversion.yaml b/bundle/manifests/authorino-operator.clusterserviceversion.yaml index d8cf8f64..e4181a90 100644 --- a/bundle/manifests/authorino-operator.clusterserviceversion.yaml +++ b/bundle/manifests/authorino-operator.clusterserviceversion.yaml @@ -4,6 +4,34 @@ metadata: annotations: alm-examples: |- [ + { + "apiVersion": "authorino.kuadrant.io/v1beta2", + "kind": "AuthConfig", + "metadata": { + "name": "talker-api-protection" + }, + "spec": { + "authentication": { + "api-key-users": { + "apiKey": { + "selector": { + "matchLabels": { + "group": "friends" + } + } + }, + "credentials": { + "authorizationHeader": { + "prefix": "APIKEY" + } + } + } + }, + "hosts": [ + "talker-api.io" + ] + } + }, { "apiVersion": "operator.authorino.kuadrant.io/v1beta1", "kind": "Authorino", @@ -43,7 +71,9 @@ spec: kind: AuthConfig name: authconfigs.authorino.kuadrant.io version: v1beta1 - - kind: AuthConfig + - description: API to describe the desired protection for a service + displayName: AuthConfig + kind: AuthConfig name: authconfigs.authorino.kuadrant.io version: v1beta2 - description: API to create instances of authorino diff --git a/config/manifests/bases/authorino-operator.clusterserviceversion.template.yaml b/config/manifests/bases/authorino-operator.clusterserviceversion.template.yaml index cb1c50d1..3fd8f6ba 100644 --- a/config/manifests/bases/authorino-operator.clusterserviceversion.template.yaml +++ b/config/manifests/bases/authorino-operator.clusterserviceversion.template.yaml @@ -17,6 +17,11 @@ spec: apiservicedefinitions: {} customresourcedefinitions: owned: + - description: API to describe the desired protection for a service + displayName: AuthConfig + kind: AuthConfig + name: authconfigs.authorino.kuadrant.io + version: v1beta2 - description: API to describe the desired protection for a service displayName: AuthConfig kind: AuthConfig diff --git a/config/manifests/bases/authorino-operator.clusterserviceversion.yaml b/config/manifests/bases/authorino-operator.clusterserviceversion.yaml index 595b71ad..dd7ede9b 100644 --- a/config/manifests/bases/authorino-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/authorino-operator.clusterserviceversion.yaml @@ -17,6 +17,11 @@ spec: apiservicedefinitions: {} customresourcedefinitions: owned: + - description: API to describe the desired protection for a service + displayName: AuthConfig + kind: AuthConfig + name: authconfigs.authorino.kuadrant.io + version: v1beta2 - description: API to describe the desired protection for a service displayName: AuthConfig kind: AuthConfig diff --git a/config/samples/authorino-operator_v1beta2_authconfig.yaml b/config/samples/authorino-operator_v1beta2_authconfig.yaml new file mode 100644 index 00000000..2d635909 --- /dev/null +++ b/config/samples/authorino-operator_v1beta2_authconfig.yaml @@ -0,0 +1,16 @@ +apiVersion: authorino.kuadrant.io/v1beta2 +kind: AuthConfig +metadata: + name: talker-api-protection +spec: + hosts: + - talker-api.io + authentication: + "api-key-users": + apiKey: + selector: + matchLabels: + group: friends + credentials: + authorizationHeader: + prefix: APIKEY \ No newline at end of file diff --git a/config/samples/kustomization.yaml b/config/samples/kustomization.yaml index 39c9923a..5b074ac7 100644 --- a/config/samples/kustomization.yaml +++ b/config/samples/kustomization.yaml @@ -1,4 +1,5 @@ ## Append samples you want in your CSV to this file as resources ## resources: - authorino-operator_v1beta1_authorino.yaml +- authorino-operator_v1beta2_authconfig.yaml #+kubebuilder:scaffold:manifestskustomizesamples