Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated api versions #216

Merged
merged 5 commits into from
Aug 11, 2021
Merged

Conversation

DTMad
Copy link
Member

@DTMad DTMad commented Aug 10, 2021

No description provided.

@@ -31,3 +31,20 @@ rules:
- get
- update
- delete
- apiGroups:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webhook stuff is not necessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more webhook stuff

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the whole folder

@@ -1,4 +1,4 @@
apiVersion: admissionregistration.k8s.io/v1beta1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webhook stuff

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the whole folder

- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: DISABLE_WEBHOOK
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webhook stuff

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Collaborator

@baichinger baichinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this work with the latest version of operator-sdk as well or do I need a specific one? With v1.10 it fails:

% make bundle             
controller-gen "crd:trivialVersions=true, preserveUnknownFields=false, crdVersions=v1" paths="./..." output:crd:artifacts:config=config/crd/default/bases
operator-sdk generate kustomize manifests -q
WARN[0000] Config version 3-alpha has been stabilized as 3, and 3-alpha is no longer supported. Run `operator-sdk alpha config-3alpha-to-3` to upgrade your PROJECT config file to version 3 
Error: error reading configuration: unable to load the configuration: unable to create config for version "3-alpha": version 3-alpha is not supported

Makefile Outdated Show resolved Hide resolved
Makefile Outdated
Comment on lines 5 to 6
# Default platform for bundle
PLATFORM="kubernetes"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is still used in target bundle.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-added

@DTMad
Copy link
Member Author

DTMad commented Aug 10, 2021

Should this work with the latest version of operator-sdk as well or do I need a specific one? With v1.10 it fails:

% make bundle             
controller-gen "crd:trivialVersions=true, preserveUnknownFields=false, crdVersions=v1" paths="./..." output:crd:artifacts:config=config/crd/default/bases
operator-sdk generate kustomize manifests -q
WARN[0000] Config version 3-alpha has been stabilized as 3, and 3-alpha is no longer supported. Run `operator-sdk alpha config-3alpha-to-3` to upgrade your PROJECT config file to version 3 
Error: error reading configuration: unable to load the configuration: unable to create config for version "3-alpha": version 3-alpha is not supported

Fixed

@DTMad DTMad merged commit f4fa150 into release-0.2 Aug 11, 2021
@DTMad DTMad deleted the fix/DeprecatedAPIVersions branch August 11, 2021 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants