From 3c25a581d3f8c62fc9c6f691d6374c69541cda99 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Mon, 28 Oct 2024 13:01:44 -0600 Subject: [PATCH] operator patterns-operator (0.0.59) (#5431) Signed-off-by: Michele Baldessari --- ...ops.hybrid-cloud-patterns.io_patterns.yaml | 254 +++++++++ ...er-manager-metrics-service_v1_service.yaml | 17 + ...-operator-manager-config_v1_configmap.yaml | 17 + ...c.authorization.k8s.io_v1_rolebinding.yaml | 13 + ...c.authorization.k8s.io_v1_clusterrole.yaml | 10 + ...tterns-operator.clusterserviceversion.yaml | 486 ++++++++++++++++++ .../0.0.59/metadata/annotations.yaml | 17 + .../0.0.59/tests/scorecard/config.yaml | 70 +++ 8 files changed, 884 insertions(+) create mode 100644 operators/patterns-operator/0.0.59/manifests/gitops.hybrid-cloud-patterns.io_patterns.yaml create mode 100644 operators/patterns-operator/0.0.59/manifests/patterns-operator-controller-manager-metrics-service_v1_service.yaml create mode 100644 operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-config_v1_configmap.yaml create mode 100644 operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-rolebinding_rbac.authorization.k8s.io_v1_rolebinding.yaml create mode 100644 operators/patterns-operator/0.0.59/manifests/patterns-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml create mode 100644 operators/patterns-operator/0.0.59/manifests/patterns-operator.clusterserviceversion.yaml create mode 100644 operators/patterns-operator/0.0.59/metadata/annotations.yaml create mode 100644 operators/patterns-operator/0.0.59/tests/scorecard/config.yaml diff --git a/operators/patterns-operator/0.0.59/manifests/gitops.hybrid-cloud-patterns.io_patterns.yaml b/operators/patterns-operator/0.0.59/manifests/gitops.hybrid-cloud-patterns.io_patterns.yaml new file mode 100644 index 00000000000..65b856f55e4 --- /dev/null +++ b/operators/patterns-operator/0.0.59/manifests/gitops.hybrid-cloud-patterns.io_patterns.yaml @@ -0,0 +1,254 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + creationTimestamp: null + name: patterns.gitops.hybrid-cloud-patterns.io +spec: + group: gitops.hybrid-cloud-patterns.io + names: + kind: Pattern + listKind: PatternList + plural: patterns + shortNames: + - patt + singular: pattern + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.lastStep + name: Step + priority: 1 + type: string + - jsonPath: .status.lastError + name: Error + priority: 2 + type: string + name: v1alpha1 + schema: + openAPIV3Schema: + description: Pattern is the Schema for the patterns API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: PatternSpec defines the desired state of Pattern + properties: + analyticsUUID: + description: Analytics UUID. Leave empty to autogenerate a random + one. Not PII information + type: string + clusterGroupName: + type: string + experimentalCapabilities: + description: Comma separated capabilities to enable certain experimental + features + type: string + extraParameters: + description: |- + .Name is dot separated per the helm --set syntax, such as: + global.something.field + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + extraValueFiles: + description: URLs to additional Helm parameter files + items: + type: string + type: array + gitOpsSpec: + properties: + manualSync: + description: 'Require manual intervention before Argo will sync + new content. Default: False' + type: boolean + type: object + gitSpec: + properties: + hostname: + description: Optional. FQDN of the git server if automatic parsing + from TargetRepo is broken + type: string + inClusterGitServer: + default: false + description: (EXPERIMENTAL) Enable in-cluster git server (avoids + the need of forking the upstream repository) + type: boolean + originRepo: + description: |- + Upstream git repo containing the pattern to deploy. Used when in-cluster fork to point to the upstream pattern repository. + Takes precedence over TargetRepo + type: string + originRevision: + description: (DEPRECATED) Branch, tag or commit in the upstream + git repository. Does not support short-sha's. Default to HEAD + type: string + pollInterval: + default: 180 + description: 'Interval in seconds to poll for drifts between origin + and target repositories. Default: 180 seconds' + type: integer + targetRepo: + description: Git repo containing the pattern to deploy. Must use + https/http or, for ssh, git@server:foo/bar.git + type: string + targetRevision: + description: 'Branch, tag, or commit to deploy. Does not support + short-sha''s. Default: HEAD' + type: string + tokenSecret: + description: |- + Optional. K8s secret name where the info for connecting to git can be found. The supported secrets are modeled after the + private repositories in argo (https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories) + currently ssh and username+password are supported + type: string + tokenSecretNamespace: + description: Optional. K8s secret namespace where the token for + connecting to git can be found + type: string + type: object + multiSourceConfig: + properties: + clusterGroupChartGitRevision: + description: |- + The git reference when deploying the clustergroup helm chart directly from a git repo + Defaults to 'main'. (Only used when developing the clustergroup helm chart) + type: string + clusterGroupChartVersion: + description: Which chart version for the clustergroup helm chart. + Defaults to "0.8.*" + type: string + clusterGroupGitRepoUrl: + description: |- + The url when deploying the clustergroup helm chart directly from a git repo + Defaults to '' which means not used (Only used when developing the clustergroup helm chart) + type: string + enabled: + default: true + description: (EXPERIMENTAL) Enable multi-source support when deploying + the clustergroup argo application + type: boolean + helmRepoUrl: + description: The helm chart url to fetch the helm charts from + in order to deploy the pattern. Defaults to https://charts.validatedpatterns.io/ + type: string + type: object + required: + - clusterGroupName + - gitSpec + type: object + status: + description: PatternStatus defines the observed state of Pattern + properties: + analyticsSent: + default: 0 + type: integer + analyticsUUID: + type: string + appClusterDomain: + type: string + applications: + items: + description: |- + PatternApplicationInfo defines the Applications + Status for the Pattern. + This structure is part of the PatternStatus as an array + The Application Status will be included as part of the Observed state of Pattern + properties: + healthMessage: + type: string + healthStatus: + type: string + name: + type: string + namespace: + type: string + syncStatus: + type: string + type: object + type: array + clusterDomain: + type: string + clusterID: + type: string + clusterName: + type: string + clusterPlatform: + type: string + clusterVersion: + type: string + conditions: + items: + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status + to another. + format: date-time + type: string + lastUpdateTime: + description: The last time this condition was updated. + format: date-time + type: string + message: + description: A human readable message indicating details about + the transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of deployment condition. + type: string + required: + - lastUpdateTime + - status + - type + type: object + type: array + lastError: + description: Last error encountered by the pattern + type: string + lastStep: + description: Last action related to the pattern + type: string + path: + type: string + version: + description: Number of updates to the pattern + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: null + storedVersions: null diff --git a/operators/patterns-operator/0.0.59/manifests/patterns-operator-controller-manager-metrics-service_v1_service.yaml b/operators/patterns-operator/0.0.59/manifests/patterns-operator-controller-manager-metrics-service_v1_service.yaml new file mode 100644 index 00000000000..0f3aa71e157 --- /dev/null +++ b/operators/patterns-operator/0.0.59/manifests/patterns-operator-controller-manager-metrics-service_v1_service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + labels: + control-plane: controller-manager + name: patterns-operator-controller-manager-metrics-service +spec: + ports: + - name: https + port: 8443 + protocol: TCP + targetPort: https + selector: + control-plane: controller-manager +status: + loadBalancer: {} diff --git a/operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-config_v1_configmap.yaml b/operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-config_v1_configmap.yaml new file mode 100644 index 00000000000..facb7f574fc --- /dev/null +++ b/operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-config_v1_configmap.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +data: + controller_manager_config.yaml: | + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 + kind: ControllerManagerConfig + health: + healthProbeBindAddress: :8081 + metrics: + bindAddress: 127.0.0.1:8080 + webhook: + port: 9443 + leaderElection: + leaderElect: true + resourceName: f2850479.hybrid-cloud-patterns.io +kind: ConfigMap +metadata: + name: patterns-operator-manager-config diff --git a/operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-rolebinding_rbac.authorization.k8s.io_v1_rolebinding.yaml b/operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-rolebinding_rbac.authorization.k8s.io_v1_rolebinding.yaml new file mode 100644 index 00000000000..fd85e30e9d8 --- /dev/null +++ b/operators/patterns-operator/0.0.59/manifests/patterns-operator-manager-rolebinding_rbac.authorization.k8s.io_v1_rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: patterns-operator-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: manager-role +subjects: +- kind: ServiceAccount + name: patterns-operator-controller-manager + namespace: patterns-operator-system diff --git a/operators/patterns-operator/0.0.59/manifests/patterns-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml b/operators/patterns-operator/0.0.59/manifests/patterns-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml new file mode 100644 index 00000000000..6783cf58c8a --- /dev/null +++ b/operators/patterns-operator/0.0.59/manifests/patterns-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml @@ -0,0 +1,10 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: patterns-operator-metrics-reader +rules: +- nonResourceURLs: + - /metrics + verbs: + - get diff --git a/operators/patterns-operator/0.0.59/manifests/patterns-operator.clusterserviceversion.yaml b/operators/patterns-operator/0.0.59/manifests/patterns-operator.clusterserviceversion.yaml new file mode 100644 index 00000000000..fbfaef96363 --- /dev/null +++ b/operators/patterns-operator/0.0.59/manifests/patterns-operator.clusterserviceversion.yaml @@ -0,0 +1,486 @@ +apiVersion: operators.coreos.com/v1alpha1 +kind: ClusterServiceVersion +metadata: + annotations: + alm-examples: |- + [ + { + "apiVersion": "gitops.hybrid-cloud-patterns.io/v1alpha1", + "kind": "Pattern", + "metadata": { + "name": "pattern-sample" + }, + "spec": { + "clusterGroupName": "hub", + "gitSpec": { + "targetRepo": "https://github.com/validatedpatterns/multicloud-gitops", + "targetRevision": "main" + }, + "multiSourceConfig": { + "enabled": true + } + } + } + ] + capabilities: Basic Install + categories: OpenShift Optional + containerImage: quay.io/hybridcloudpatterns/patterns-operator:0.0.59 + createdAt: 2024-10-28 18:53:40 + description: "An operator to deploy and manage architecture patterns from https://validatedpatterns.io. \nThis operator collects some Analytics like cluster version, cloud type, etc. To disable this\nadd \"ANALYTICS: false\" to the environment variables in the subscription." + features.operators.openshift.io/disconnected: "true" + features.operators.openshift.io/fips-compliant: "false" + features.operators.openshift.io/proxy-aware: "true" + features.operators.openshift.io/tls-profiles: "false" + features.operators.openshift.io/token-auth-aws: "false" + features.operators.openshift.io/token-auth-azure: "false" + features.operators.openshift.io/token-auth-gcp: "false" + operators.operatorframework.io/builder: operator-sdk-v1.30.0 + operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 + repository: https://github.com/validatedpatterns/patterns-operator + support: validatedpatterns@googlegroups.com + name: patterns-operator.v0.0.59 + namespace: placeholder +spec: + apiservicedefinitions: {} + customresourcedefinitions: + owned: + - description: Pattern is the Schema for the patterns API + displayName: Pattern + kind: Pattern + name: patterns.gitops.hybrid-cloud-patterns.io + resources: + - kind: Pattern + name: patterns + version: v1alpha1 + specDescriptors: + - displayName: Name + path: extraParameters[0].name + - displayName: Value + path: extraParameters[0].value + - displayName: Cluster Group Name + path: clusterGroupName + - displayName: Git Config + path: gitSpec + - displayName: Multi Source Config + path: multiSourceConfig + - description: '.Name is dot separated per the helm --set syntax, such as: global.something.field' + displayName: Extra Parameters + path: extraParameters + - description: URLs to additional Helm parameter files + displayName: Extra Value Files + path: extraValueFiles + - displayName: Git Ops Config + path: gitOpsSpec + - description: Analytics UUID. Leave empty to autogenerate a random one. Not PII information + displayName: Analytics UUID + path: analyticsUUID + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: Comma separated capabilities to enable certain experimental features + displayName: Experimental Capabilities + path: experimentalCapabilities + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: (EXPERIMENTAL) Enable in-cluster git server (avoids the need of forking the upstream repository) + displayName: In Cluster Git Server + path: gitSpec.inClusterGitServer + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:booleanSwitch + - description: Git repo containing the pattern to deploy. Must use https/http or, for ssh, git@server:foo/bar.git + displayName: Target Repo + path: gitSpec.targetRepo + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:fieldDependency:gitSpec.inClusterGitServer:false + - description: Upstream git repo containing the pattern to deploy. Used when in-cluster fork to point to the upstream pattern repository. Takes precedence over TargetRepo + displayName: Origin Repo + path: gitSpec.originRepo + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:fieldDependency:gitSpec.inClusterGitServer:true + - description: (DEPRECATED) Branch, tag or commit in the upstream git repository. Does not support short-sha's. Default to HEAD + displayName: Origin Revision + path: gitSpec.originRevision + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:hidden + - description: 'Interval in seconds to poll for drifts between origin and target repositories. Default: 180 seconds' + displayName: Poll Interval + path: gitSpec.pollInterval + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:number + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: 'Branch, tag, or commit to deploy. Does not support short-sha''s. Default: HEAD' + displayName: Target Revision + path: gitSpec.targetRevision + - description: Optional. FQDN of the git server if automatic parsing from TargetRepo is broken + displayName: Hostname + path: gitSpec.hostname + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: Optional. K8s secret name where the info for connecting to git can be found. The supported secrets are modeled after the private repositories in argo (https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories) currently ssh and username+password are supported + displayName: Token Secret + path: gitSpec.tokenSecret + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: Optional. K8s secret namespace where the token for connecting to git can be found + displayName: Token Secret Namespace + path: gitSpec.tokenSecretNamespace + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: (EXPERIMENTAL) Enable multi-source support when deploying the clustergroup argo application + displayName: Enabled + path: multiSourceConfig.enabled + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:booleanSwitch + - description: The helm chart url to fetch the helm charts from in order to deploy the pattern. Defaults to https://charts.validatedpatterns.io/ + displayName: Helm Repo Url + path: multiSourceConfig.helmRepoUrl + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:fieldDependency:multiSourceConfig.enabled:true + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: Which chart version for the clustergroup helm chart. Defaults to "0.8.*" + displayName: Cluster Group Chart Version + path: multiSourceConfig.clusterGroupChartVersion + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:fieldDependency:multiSourceConfig.enabled:true + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: The url when deploying the clustergroup helm chart directly from a git repo Defaults to '' which means not used (Only used when developing the clustergroup helm chart) + displayName: Cluster Group Git Repo Url + path: multiSourceConfig.clusterGroupGitRepoUrl + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:fieldDependency:multiSourceConfig.enabled:true + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: The git reference when deploying the clustergroup helm chart directly from a git repo Defaults to 'main'. (Only used when developing the clustergroup helm chart) + displayName: Cluster Group Chart Git Revision + path: multiSourceConfig.clusterGroupChartGitRevision + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:fieldDependency:multiSourceConfig.enabled:true + - urn:alm:descriptor:com.tectonic.ui:advanced + - description: 'Require manual intervention before Argo will sync new content. Default: False' + displayName: Manual Sync + path: gitOpsSpec.manualSync + statusDescriptors: + - displayName: Analytics Sent + path: analyticsSent + - displayName: Analytics UUID + path: analyticsUUID + - displayName: App Cluster Domain + path: appClusterDomain + - displayName: Cluster Domain + path: clusterDomain + - displayName: Cluster ID + path: clusterID + - displayName: Cluster Name + path: clusterName + - displayName: Cluster Platform + path: clusterPlatform + - displayName: Cluster Version + path: clusterVersion + - description: Last error encountered by the pattern + displayName: Last Error + path: lastError + - description: Last action related to the pattern + displayName: Last Step + path: lastStep + - displayName: Local Checkout Path + path: path + - description: Number of updates to the pattern + displayName: Version + path: version + version: v1alpha1 + description: Deploys and manages architecture patterns from https://validatedpatterns.io + displayName: Validated Patterns Operator + icon: + - base64data: iVBORw0KGgoAAAANSUhEUgAAAMgAAADIAgMAAADQNkYNAAAAAXNSR0IArs4c6QAAAAxQTFRF+/v7IWSdx3A4LDpGRm1eQgAAAnhJREFUaN7t2Ltt5TAQhWFzBcGAE0WKnbsJqgQFYj1WKQwJVqGSVICA2fu+ehwM52DD1eRf8p+I/Pg477zzzvu3q0aeTDT55Ekz0+SbJ36hyS9PRFjheFKJsJU/edKIsJW/eeJF2Mq/PBFhKzueVFcysbOwpLmSmZ2FJf5KFnYWloiwlR1PqjuZ2Fk40tzJzM7CEX8nCzsLR0TYyo4n1ZNM7CwMaZ5kZmdhiH+ShZ2FISJsZceT6k0mdhY7ad5kZmexE/8mCzuLnYiwlR1PqjWZ2FmspFmTmZ3FSvyaLOwsViLCVnY8qbZkYmexkWZLZnYWG/FbsrCz2IgIW9nxpNqTiZ3FQpo9mdlZLMTvycLOYiEibGXHk+pIJnaWMmmOZGZnKRN/JAs7C/+OKd8fNFWBgI8B16nkC5C6QCIgvUp+AGkLJAEyqCQDEgokAxLUxoC4IhkB0Sp/AVIXSQREq/wDSFskCZBBbXwkoUgyIEFtfCDOQEZAOq3xgdQGEgHptcYH0hpIAmRQG+9JMJAMSFAb74gzkRGQTmu8I7WJREB6rfGOtCaSABnUxlsSTCQDEtTGG+KMZASk0xpvSG0kEZBea7whrZEkQAa18ZoEI8mABLXxijgzGQHptMYrUptJBKTXGq9IayYJkEFt/CbBTDIgQW38Io4gIyCd1vhFaoJEQHqt8Yu0BEmADGrjJwkEyYAEtfGDOIqMgHRa4wepKRIB6bXGD9JSJAEyqI3vJFAkAxLUxjfiSDIC0mmNb6QmSQSk1xrfSEuSBMigNr6SQJIMSFAbX4ijyQhIpzW+kJomEZBea3whLU0SIIPaOKcQCsOcd955/9f9BYUNIA2v1ub2AAAAAElFTkSuQmCC + mediatype: image/png + install: + spec: + clusterPermissions: + - rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - apiGroups: + - "" + resources: + - namespaces + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - "" + resources: + - secrets + verbs: + - create + - get + - update + - watch + - apiGroups: + - argoproj.io + resources: + - applications + verbs: + - create + - delete + - get + - list + - patch + - update + - apiGroups: + - argoproj.io + resources: + - argocds + verbs: + - create + - delete + - get + - list + - patch + - update + - apiGroups: + - config.openshift.io + resources: + - clusterversions + verbs: + - get + - list + - apiGroups: + - config.openshift.io + resources: + - infrastructures + verbs: + - get + - list + - apiGroups: + - config.openshift.io + resources: + - ingresses + verbs: + - get + - list + - apiGroups: + - gitops.hybrid-cloud-patterns.io + resources: + - patterns + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - gitops.hybrid-cloud-patterns.io + resources: + - patterns/finalizers + verbs: + - update + - apiGroups: + - gitops.hybrid-cloud-patterns.io + resources: + - patterns/status + verbs: + - get + - patch + - update + - apiGroups: + - operator.open-cluster-management.io + resources: + - multiclusterhubs + verbs: + - get + - list + - apiGroups: + - operator.openshift.io + resources: + - openshiftcontrollermanagers + verbs: + - get + - list + - apiGroups: + - operators.coreos.com + resources: + - subscriptions + verbs: + - create + - delete + - get + - list + - patch + - update + - apiGroups: + - authentication.k8s.io + resources: + - tokenreviews + verbs: + - create + - apiGroups: + - authorization.k8s.io + resources: + - subjectaccessreviews + verbs: + - create + serviceAccountName: patterns-operator-controller-manager + deployments: + - label: + control-plane: controller-manager + name: patterns-operator-controller-manager + spec: + replicas: 1 + selector: + matchLabels: + control-plane: controller-manager + strategy: {} + template: + metadata: + annotations: + kubectl.kubernetes.io/default-container: manager + labels: + control-plane: controller-manager + spec: + containers: + - args: + - --secure-listen-address=0.0.0.0:8443 + - --upstream=http://127.0.0.1:8080/ + - --logtostderr=true + - --v=10 + image: gcr.io/kubebuilder/kube-rbac-proxy@sha256:db06cc4c084dd0253134f156dddaaf53ef1c3fb3cc809e5d81711baa4029ea4c + name: kube-rbac-proxy + ports: + - containerPort: 8443 + name: https + protocol: TCP + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 5m + memory: 64Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + - args: + - --health-probe-bind-address=:8081 + - --metrics-bind-address=127.0.0.1:8080 + - --leader-elect + command: + - /manager + image: quay.io/hybridcloudpatterns/patterns-operator@sha256:81ccc1ba2c88a5ee76e3525b48ea837aa68d968dca1ad998f755c57cfbdf22eb + imagePullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: /healthz + port: 8081 + initialDelaySeconds: 15 + periodSeconds: 20 + name: manager + readinessProbe: + httpGet: + path: /readyz + port: 8081 + initialDelaySeconds: 5 + periodSeconds: 10 + resources: + limits: + cpu: 500m + memory: 256Mi + requests: + cpu: 10m + memory: 64Mi + securityContext: + allowPrivilegeEscalation: false + securityContext: + runAsNonRoot: true + serviceAccountName: patterns-operator-controller-manager + terminationGracePeriodSeconds: 10 + permissions: + - rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - events + verbs: + - create + - patch + - apiGroups: + - route.openshift.io + resources: + - routes + - routes/custom-host + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + serviceAccountName: patterns-operator-controller-manager + strategy: deployment + installModes: + - supported: false + type: OwnNamespace + - supported: false + type: SingleNamespace + - supported: false + type: MultiNamespace + - supported: true + type: AllNamespaces + keywords: + - Validated + - Pattern + - Blueprint + - Architecture + links: + - name: Hybrid Cloud Patterns + url: https://validatedpatterns.io + maintainers: + - email: validatedpatterns@googlegroups.com + name: patterns-team + maturity: alpha + minKubeVersion: 1.23.0 + provider: + name: Red Hat + url: https://www.redhat.com/en/products/edge/validated-patterns + relatedImages: + - image: gcr.io/kubebuilder/kube-rbac-proxy@sha256:db06cc4c084dd0253134f156dddaaf53ef1c3fb3cc809e5d81711baa4029ea4c + name: kube-rbac-proxy + - image: quay.io/hybridcloudpatterns/patterns-operator@sha256:81ccc1ba2c88a5ee76e3525b48ea837aa68d968dca1ad998f755c57cfbdf22eb + name: manager + version: 0.0.59 diff --git a/operators/patterns-operator/0.0.59/metadata/annotations.yaml b/operators/patterns-operator/0.0.59/metadata/annotations.yaml new file mode 100644 index 00000000000..adaf87f36dc --- /dev/null +++ b/operators/patterns-operator/0.0.59/metadata/annotations.yaml @@ -0,0 +1,17 @@ +annotations: + # Core bundle annotations. + operators.operatorframework.io.bundle.mediatype.v1: registry+v1 + operators.operatorframework.io.bundle.manifests.v1: manifests/ + operators.operatorframework.io.bundle.metadata.v1: metadata/ + operators.operatorframework.io.bundle.package.v1: patterns-operator + operators.operatorframework.io.bundle.channels.v1: fast + operators.operatorframework.io.metrics.builder: operator-sdk-v1.30.0 + operators.operatorframework.io.metrics.mediatype.v1: metrics+v1 + operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3 + + # Annotations for testing. + operators.operatorframework.io.test.mediatype.v1: scorecard+v1 + operators.operatorframework.io.test.config.v1: tests/scorecard/ + + # OpenShift minimum version + com.redhat.openshift.versions: v4.10 diff --git a/operators/patterns-operator/0.0.59/tests/scorecard/config.yaml b/operators/patterns-operator/0.0.59/tests/scorecard/config.yaml new file mode 100644 index 00000000000..e9a00c1d04c --- /dev/null +++ b/operators/patterns-operator/0.0.59/tests/scorecard/config.yaml @@ -0,0 +1,70 @@ +apiVersion: scorecard.operatorframework.io/v1alpha3 +kind: Configuration +metadata: + name: config +stages: +- parallel: true + tests: + - entrypoint: + - scorecard-test + - basic-check-spec + image: quay.io/operator-framework/scorecard-test:v1.16.0 + labels: + suite: basic + test: basic-check-spec-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-bundle-validation + image: quay.io/operator-framework/scorecard-test:v1.16.0 + labels: + suite: olm + test: olm-bundle-validation-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-crds-have-validation + image: quay.io/operator-framework/scorecard-test:v1.16.0 + labels: + suite: olm + test: olm-crds-have-validation-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-crds-have-resources + image: quay.io/operator-framework/scorecard-test:v1.16.0 + labels: + suite: olm + test: olm-crds-have-resources-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-spec-descriptors + image: quay.io/operator-framework/scorecard-test:v1.16.0 + labels: + suite: olm + test: olm-spec-descriptors-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-status-descriptors + image: quay.io/operator-framework/scorecard-test:v1.16.0 + labels: + suite: olm + test: olm-status-descriptors-test + storage: + spec: + mountPath: {} +storage: + spec: + mountPath: {}