diff --git a/bundle/manifests/authorino-operator.clusterserviceversion.yaml b/bundle/manifests/authorino-operator.clusterserviceversion.yaml index e4181a90..61285912 100644 --- a/bundle/manifests/authorino-operator.clusterserviceversion.yaml +++ b/bundle/manifests/authorino-operator.clusterserviceversion.yaml @@ -4,11 +4,39 @@ metadata: annotations: alm-examples: |- [ + { + "apiVersion": "authorino.kuadrant.io/v1beta1", + "kind": "AuthConfig", + "metadata": { + "name": "my-api-protection" + }, + "spec": { + "hosts": [ + "my-api.io" + ], + "identity": [ + { + "apiKey": { + "selector": { + "matchLabels": { + "group": "friends" + } + } + }, + "credentials": { + "in": "authorization_header", + "keySelector": "APIKEY" + }, + "name": "api-key-users" + } + ] + } + }, { "apiVersion": "authorino.kuadrant.io/v1beta2", "kind": "AuthConfig", "metadata": { - "name": "talker-api-protection" + "name": "my-api-protection" }, "spec": { "authentication": { @@ -28,7 +56,7 @@ metadata: } }, "hosts": [ - "talker-api.io" + "my-api.io" ] } }, diff --git a/config/samples/authorino-operator_v1beta1_authconfig.yaml b/config/samples/authorino-operator_v1beta1_authconfig.yaml new file mode 100644 index 00000000..5d70b064 --- /dev/null +++ b/config/samples/authorino-operator_v1beta1_authconfig.yaml @@ -0,0 +1,16 @@ +apiVersion: authorino.kuadrant.io/v1beta1 +kind: AuthConfig +metadata: + name: my-api-protection +spec: + hosts: + - my-api.io + identity: + - name: api-key-users + apiKey: + selector: + matchLabels: + group: friends + credentials: + in: authorization_header + keySelector: APIKEY diff --git a/config/samples/authorino-operator_v1beta2_authconfig.yaml b/config/samples/authorino-operator_v1beta2_authconfig.yaml index 2d635909..97f53503 100644 --- a/config/samples/authorino-operator_v1beta2_authconfig.yaml +++ b/config/samples/authorino-operator_v1beta2_authconfig.yaml @@ -1,10 +1,10 @@ apiVersion: authorino.kuadrant.io/v1beta2 kind: AuthConfig metadata: - name: talker-api-protection + name: my-api-protection spec: hosts: - - talker-api.io + - my-api.io authentication: "api-key-users": apiKey: @@ -13,4 +13,4 @@ spec: group: friends credentials: authorizationHeader: - prefix: APIKEY \ No newline at end of file + prefix: APIKEY diff --git a/config/samples/kustomization.yaml b/config/samples/kustomization.yaml index 5b074ac7..eec2834f 100644 --- a/config/samples/kustomization.yaml +++ b/config/samples/kustomization.yaml @@ -1,5 +1,6 @@ ## Append samples you want in your CSV to this file as resources ## resources: - authorino-operator_v1beta1_authorino.yaml +- authorino-operator_v1beta1_authconfig.yaml - authorino-operator_v1beta2_authconfig.yaml #+kubebuilder:scaffold:manifestskustomizesamples