Skip to content

Commit 2eb1d27

Browse files
committed
K8S-536 fix registry-creds schema
1 parent 36f0777 commit 2eb1d27

File tree

2 files changed

+32
-35
lines changed

2 files changed

+32
-35
lines changed

addons/registry-creds/registry-creds-system.yaml

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,55 @@ metadata:
55
control-plane: registry-creds-controller
66
name: registry-creds-system
77
---
8-
apiVersion: apiextensions.k8s.io/v1beta1
8+
apiVersion: apiextensions.k8s.io/v1
99
kind: CustomResourceDefinition
1010
metadata:
1111
annotations:
1212
controller-gen.kubebuilder.io/version: v0.2.5
1313
creationTimestamp: null
1414
name: clusterpullsecrets.ops.alexellis.io
1515
spec:
16-
additionalPrinterColumns:
17-
- JSONPath: .spec.secretRef.name
18-
name: SecretName
19-
type: string
20-
- JSONPath: .spec.secretRef.namespace
21-
name: SecretNamespace
22-
type: string
2316
group: ops.alexellis.io
2417
names:
2518
kind: ClusterPullSecret
2619
listKind: ClusterPullSecretList
2720
plural: clusterpullsecrets
2821
singular: clusterpullsecret
2922
scope: Cluster
30-
subresources: {}
31-
validation:
32-
openAPIV3Schema:
33-
description: ClusterPullSecret is the Schema for the clusterpullsecrets API
34-
properties:
35-
apiVersion:
36-
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'
37-
type: string
38-
kind:
39-
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'
40-
type: string
41-
metadata:
42-
type: object
43-
spec:
44-
description: ClusterPullSecretSpec defines the desired state of ClusterPullSecret
45-
properties:
46-
secretRef:
47-
type: object
48-
type: object
49-
status:
50-
description: ClusterPullSecretStatus defines the observed state of ClusterPullSecret
51-
type: object
52-
type: object
53-
version: v1
5423
versions:
5524
- name: v1
5625
served: true
5726
storage: true
27+
subresources: {}
28+
additionalPrinterColumns:
29+
- jsonPath: .spec.secretRef.name
30+
name: SecretName
31+
type: string
32+
- jsonPath: .spec.secretRef.namespace
33+
name: SecretNamespace
34+
type: string
35+
schema:
36+
openAPIV3Schema:
37+
description: ClusterPullSecret is the Schema for the clusterpullsecrets API
38+
properties:
39+
apiVersion:
40+
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'
41+
type: string
42+
kind:
43+
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'
44+
type: string
45+
metadata:
46+
type: object
47+
spec:
48+
description: ClusterPullSecretSpec defines the desired state of ClusterPullSecret
49+
properties:
50+
secretRef:
51+
type: object
52+
type: object
53+
status:
54+
description: ClusterPullSecretStatus defines the observed state of ClusterPullSecret
55+
type: object
56+
type: object
5857
status:
5958
acceptedNames:
6059
kind: ""
@@ -78,8 +77,6 @@ rules:
7877
- update
7978
- patch
8079
---
81-
82-
---
8380
apiVersion: rbac.authorization.k8s.io/v1
8481
kind: ClusterRole
8582
metadata:

manifest.jps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,8 +1139,8 @@ addons:
11391139
- cmd[${nodes.k8sm.master.id}]: |-
11401140
kubectl apply -f ${baseUrl}/addons/registry-creds/registry-creds-system.yaml
11411141
wait-deployment.sh registry-creds-registry-creds-controller registry-creds-system 1 600
1142-
kubectl -n kube-system delete secret dockerhub-credentials-secret
11431142
kubectl delete -f ${baseUrl}/addons/registry-creds/dockerhub-secret.yaml
1143+
kubectl -n kube-system delete secret dockerhub-credentials-secret
11441144
kubectl -n kube-system create secret docker-registry dockerhub-credentials-secret --docker-username='${settings.creds_username}' --docker-password='${settings.creds_password}' --docker-email='${settings.creds_email}'
11451145
kubectl apply -f ${baseUrl}/addons/registry-creds/dockerhub-secret.yaml
11461146

0 commit comments

Comments
 (0)